class TaskMenuBarManager
  
  def initialize uicontext
    #File menu
    fileMenu = Gtk::Menu.new
    fileMenu.add uicontext.menuItemsManager.getFileOpenMenuItem
    fileMenu.add uicontext.menuItemsManager.getFileSaveMenuItem
    fileMenu.add uicontext.menuItemsManager.getFileSaveAsMenuItem
    
    fileItem = Gtk::MenuItem.new GLib.locale_to_utf8(_("_File"))
    fileItem.submenu = fileMenu
    
    #Options Menu
    langMenu = Gtk::Menu.new
    langMenu.add uicontext.menuItemsManager.getChineseMenuItem
		langMenu.add uicontext.menuItemsManager.getEnglishMenuItem
		
		langMenuItem = Gtk::MenuItem.new(GLib.locale_to_utf8(_("_Language")))
		langMenuItem.submenu = langMenu
    
    optionsMenu = Gtk::Menu.new
		optionsMenu.add langMenuItem
    
    optionsItem = Gtk::MenuItem.new GLib.locale_to_utf8(_("_Options"))
		optionsItem.submenu = optionsMenu
		
		
    #Help Menu
    helpSupportItem = Gtk::MenuItem.new GLib.locale_to_utf8(_("_Support"))
    aboutItem = Gtk::MenuItem.new GLib.locale_to_utf8(_("_About"))
    
    helpMenu = Gtk::Menu.new
    #helpMenu.add helpSupportItem
    helpMenu.add uicontext.menuItemsManager.getHelpAboutMenuItem
    
    helpItem = Gtk::MenuItem.new GLib.locale_to_utf8(_("_Help"))
    helpItem.submenu = helpMenu
    
    @taskMenuBar = Gtk::MenuBar.new
    @taskMenuBar.append fileItem
    @taskMenuBar.append optionsItem
    @taskMenuBar.append helpItem
  end
  
  def getTaskMenuBar
    @taskMenuBar
  end
end
